package com.ljh.service.impl;

import com.ljh.mapper.DindingMapper;
import com.ljh.pojo.Dinding;
import com.ljh.pojo.Floors;
import com.ljh.mapper.FloorsMapper;
import com.ljh.service.FLOORService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 刘剑鸿
 * @since 2021-09-30
 */
@Service
public class FloorsServiceImpl extends ServiceImpl<FloorsMapper, Floors> implements FLOORService {

    @Autowired
    private FloorsMapper floorsMapper;

    @Autowired
    private DindingMapper dindingMapper;
   public List<Floors> getfloors(){
       List<Floors> floors = floorsMapper.selectList(null);
        return  floors;
   }
    public List<Dinding> Outding(int id){
       List<Dinding> floor = dindingMapper.selectListOut(id);
       return floor;
    }

   public List<Dinding> ding(int id){
       List<Dinding> dings = dindingMapper.selectListOut(id);
       return dings;
   }
}
